home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / Squeaky.swf / scripts / frame_90 / PlaceObject2_268_40 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2005-08-04  |  343 b   |  19 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.hero.hitTest(this.ufotop) && _root.hero._y < this._y)
  3.    {
  4.       this.gotoAndStop(2);
  5.       if(this._y > 195)
  6.       {
  7.          this._y -= 1;
  8.       }
  9.    }
  10.    else
  11.    {
  12.       this.gotoAndStop(1);
  13.       if(this._y < 295 and _root.hero._x > 450)
  14.       {
  15.          this._y += 1;
  16.       }
  17.    }
  18. }
  19.